package com.woniuxy.consumerfeign.configuration;

import com.netflix.loadbalancer.IRule;
import com.netflix.loadbalancer.RandomRule;
import feign.Logger;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;

@Configuration
public class RpcConfiguration {
    //均衡策略ribbon配置类
    @Bean
    public IRule iRule(){
        return new RandomRule();
    }

    //设置feign日志级别
    @Bean
    public Logger.Level level(){
        return Logger.Level.FULL;
    }
}

